<?php
/**
 * Created by PhpStorm.
 * User: blue
 * Date: 2018/8/16
 * Time: 17:53
 */

namespace app\api\validate;


class RegisterValidate extends BaseValidate
{
    protected $rule=[
        //用户名验证 唯一性长度
        'username'=>'require',
        'passowrd'=>'require',
        'code'=>'require'
    ];

    protected $message=[
        'username.require'=>'用户名称必须填写',
        'password.require'=>'密码必须填写',
        'code.require'=>'验证码必须填写'
    ];
}